package org.example.new_hbps_backend_reconstruction.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.List;

public interface OssService {
    boolean uploadFile(MultipartFile file, String path, String rename);
    boolean uploadBucketFile(MultipartFile file, String bucketName,String objectName);
    String getFileUrl(String objectName);
    String getBucketFileUrl(String bucketName, String objectName);


    List<String> listFiles(String prefix);

    boolean deleteFile(String pathName);
    boolean deleteFile(String fileName,String path);
    boolean deleteBucketFile(String bucketName, String fileName, String path);
    boolean deleteDirectory(String directory);

    boolean createDirectory(String directory, String path);

    boolean moveFile(String filename, String ori_path, String tar_path);

    boolean uploadUrl(String fileUrl, String objectName);

    public boolean moveDirectory(String ori_path, String tar_path);

    String getImageUrl(String bucketName, String objectBaseName);

    String uploadFileAndGetUrl(MultipartFile file, String objectName);
}
